﻿<navigation:Page
  x:Class="Communergy.Silverlight.Client.Home" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
  Style="{StaticResource PageStyle}">

  <Grid x:Name="LayoutRoot">

      <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">

        <TextBlock Style="{StaticResource ContentTextStyle}" 
                   Text="Welcome to Communergy, enabling you to record and monitor your personal energy use."/>
          
        <controlsToolkit:WrapPanel x:Name="AnonymousContent" Orientation="Horizontal">

            <TextBlock Style="{StaticResource ContentTextStyle}"  Text="Please "/>
            
            <Button x:Name="loginButton" 
                Content="{Binding Path=ApplicationStrings.LoginButton, Source={StaticResource ResourceWrapper}}" 
                Click="loginButton_Click" Style="{StaticResource LoginRegisterLinkStyle}"
                FontSize="12" Foreground="{StaticResource LinkColorBrush}"/>

            <TextBlock Style="{StaticResource ContentTextStyle}" Text=" or " />

            <Button x:Name="registerButton" 
                Content="{Binding Path=ApplicationStrings.RegisterButton, Source={StaticResource ResourceWrapper}}"
                Click="registerButton_Click" Style="{StaticResource LoginRegisterLinkStyle}"
                FontSize="12" Foreground="{StaticResource LinkColorBrush}"/>
            
            <TextBlock Style="{StaticResource ContentTextStyle}" Text=" to get started. Alernatively, visit the project home at " />

            <HyperlinkButton Content="communergy.codeplex.com" 
                             VerticalAlignment="Center"
                             NavigateUri="http://communergy.codeplex.com"
                             FontSize="12"/>
            
        </controlsToolkit:WrapPanel>

      </StackPanel>

  </Grid>

</navigation:Page>